import request from '@/utils/request'

// 查询去程运单列表
export function listUpwardwaybill(query) {
  return request({
    url: '/waybills/waybill/list',
    method: 'get',
    params: query
  })
}

// 查询去程运单详细
export function getUpwardwaybill(wayBillId) {
  return request({
    url: '/waybills/waybill/' + wayBillId,
    method: 'get'
  })
}

// 新增去程运单
export function addUpwardwaybill(data) {
  return request({
    url: '/waybills/waybill',
    method: 'post',
    data: data
  })
}

// 修改去程运单
export function updateUpwardwaybill(data) {
  return request({
    url: '/waybills/waybill',
    method: 'put',
    data: data
  })
}

// 删除去程运单
export function delUpwardwaybill(wayBillId) {
  return request({
    url: '/waybills/waybill/' + wayBillId,
    method: 'delete'
  })
}
